import IUpdatePasswordByCodeForm from '@/model/form/user/IUpdatePasswordByCodeForm'
import IResVO from '@/model/vo/common/IResVO'
import $http from '@/util/http'
import { AxiosResponse } from 'axios'

// 通过 code修改密码
export default function forgotPasswordUpdatePasswordByCodeApi(
  form: IUpdatePasswordByCodeForm
) {
  return $http.post<IResVO, AxiosResponse<IResVO>, IUpdatePasswordByCodeForm>(
    '/forgotPassword/updatePasswordByCode',
    form
  )
}
